package com.example.events;

import org.springframework.context.ApplicationEvent;

public class UserEvent extends ApplicationEvent {
    private final String message;

    public UserEvent(Object source, String message) {
        super(source);
        this.message = message;
    }
}

class UserRegisterEvent extends UserEvent {
    public UserRegisterEvent(Object source, String message) {
        super(source, message);
    }
}

class UserLoginEvent extends UserEvent {
    public UserLoginEvent(Object source, String message) {
        super(source, message);
    }
}

